175. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2023-03-13 03:01:03 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

175.1 Files compared

#LocationFileLast Modified
1Porto v4.0.4/Porto Theme/app/code/Smartwave/Porto/PluginUpdateBodyClass.php2021-03-15 02:47:53 +0000
2Porto v4.0.5/Porto Theme/app/code/Smartwave/Porto/PluginUpdateBodyClass.php2021-03-15 02:47:53 +0000

175.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged190
Changed00
Inserted00
Removed00

175.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

175.4 Active regular expressions

No regular expressions were active.

175.5 Comparison detail

1 <?php 1 <?php
2 namespace Smartwave\Porto\Plugin; 2 namespace Smartwave\Porto\Plugin;
3  3 
4 use Magento\Framework\App\ResponseInterface; 4 use Magento\Framework\App\ResponseInterface;
5  5 
6 class UpdateBodyClass 6 class UpdateBodyClass
7 { 7 {
8 »       private $context; 8 »       private $context;
9 »       protected $helper; 9 »       protected $helper;
10  10 
11 »       public function __construct( 11 »       public function __construct(
12 »       »       \Magento\Framework\View\Element\Context $context, 12 »       »       \Magento\Framework\View\Element\Context $context,
13 »       »       \Smartwave\Porto\Helper\Data $helper 13 »       »       \Smartwave\Porto\Helper\Data $helper
14 »       ) { 14 »       ) {
15 »       »       $this->context = $context; 15 »       »       $this->context = $context;
16 »       »       $this->helper = $helper; 16 »       »       $this->helper = $helper;
17 »       } 17 »       }
18  18 
19 »       public function beforeRenderResult(\Magento\Framework\View\Result\Page $subject, ResponseInterface $response) { 19 »       public function beforeRenderResult(\Magento\Framework\View\Result\Page $subject, ResponseInterface $response) {
20  20 
21 »       »       $page_layout = $this->helper->getConfig('porto_settings/general/layout'); 21 »       »       $page_layout = $this->helper->getConfig('porto_settings/general/layout');
22 »       »       if($page_layout == "full_width") { 22 »       »       if($page_layout == "full_width") {
23 »               $page_layout = "layout-fullwidth"; 23 »               $page_layout = "layout-fullwidth";
24 »           } else if($page_layout == "1140") { 24 »           } else if($page_layout == "1140") {
25 »               $page_layout = "layout-1140"; 25 »               $page_layout = "layout-1140";
26 »           } else if($page_layout == "1220") { 26 »           } else if($page_layout == "1220") {
27 »               $page_layout = "layout-1220"; 27 »               $page_layout = "layout-1220";
28 »           } 28 »           }
29 »       »       if($page_layout){ 29 »       »       if($page_layout){
30 »       »       »       $subject->getConfig()->addBodyClass($page_layout); 30 »       »       »       $subject->getConfig()->addBodyClass($page_layout);
31 »       »       } 31 »       »       }
32  32 
33 »           $boxed = $this->helper->getConfig('porto_settings/general/boxed'); 33 »           $boxed = $this->helper->getConfig('porto_settings/general/boxed');
34 »       »       if($boxed){ 34 »       »       if($boxed){
35 »       »       »       $subject->getConfig()->addBodyClass($boxed); 35 »       »       »       $subject->getConfig()->addBodyClass($boxed);
36 »       »       } 36 »       »       }
37  37 
38 »       »       if ($this->helper->getConfig('porto_settings/header/mobile_sticky_header')) 38 »       »       if ($this->helper->getConfig('porto_settings/header/mobile_sticky_header'))
39         »       $subject->getConfig()->addBodyClass("mobile-sticky"); 39         »       $subject->getConfig()->addBodyClass("mobile-sticky");
40         //if ($this->helper->getConfig('porto_settings/header/header_type') == "10") 40         //if ($this->helper->getConfig('porto_settings/header/header_type') == "10")
41         »       //$subject->getConfig()->addBodyClass("side-header"); 41         »       //$subject->getConfig()->addBodyClass("side-header");
42  42 
43 »       »       return [$response]; 43 »       »       return [$response];
44 »       } 44 »       }
45 } 45 }